package com.yld.demo2.service;

import com.yld.demo2.entity.table.OrderList;
import com.yld.demo2.entity.vo.OrderListVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderListService {

    OrderListVo selectByUserId(Integer userid);
    List<OrderListVo> selectAll();

    Boolean insertAll(OrderListVo orderListVo);

    Boolean deleteByOrderNo(Integer orderno);

    Boolean updateByOrderNo(OrderListVo orderListVo);

    List<OrderListVo> selectAllByUserId(Integer userid);

    //根据订单号查询用户号
    Integer selectUserIdByOrderNo(Integer orderno);
}
